home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / wgdb-42.lha / wgdb-4.2 / bfd / Makefile.in < prev    next >
Makefile  |  1992-09-11  |  10KB  |  296 lines

  1. #    Makefile template for Configure for the BFD library.
  2. #    Copyright (C) 1990, 1991 Free Software Foundation, Inc.
  3. #    Written by Cygnus Support.
  4. # This file is part of BFD, the Binary File Descriptor library.
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. # $Id: Makefile.in,v 1.49 1991/10/12 05:45:59 gnu Exp $
  18.  
  19. srcdir = .
  20. destdir = /usr/local
  21. libdir = $(destdir)/H-$(host_alias)/T-independent/lib
  22. docdir = $(srcdir)/doc
  23.  
  24. RANLIB = ranlib
  25. AR = ar
  26. AR_FLAGS = clq
  27. INCDIR = $(srcdir)/../include
  28. CSEARCH = -I. -I$(INCDIR)
  29. DEP = mkdep
  30.  
  31.  
  32. #### host and target dependent Makefile fragments come in here.
  33. ###
  34.  
  35. TARGETLIB = libbfd.a
  36. CFLAGS = -g $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
  37.  
  38.  
  39. BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
  40.     archures.o core.o section.o format.o syms.o reloc.o init.o
  41.  
  42. BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
  43.     cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o
  44.  
  45. BFD_BACKENDS = oasys.o ieee.o srec.o \
  46.     aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \
  47.     icoff.o amdcoff.o m68kcoff.o i386coff.o m88k-bcs.o ecoff.o elf.o
  48.  
  49.  
  50. OPTIONAL_BACKENDS = trad-core.o
  51.  
  52. BFD_H=$(INCDIR)/bfd.h
  53.  
  54. # C source files that correspond to .o's.
  55. CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
  56.      i386coff.c aout64.c aout32.c sunos.c demo64.c icoff.c srec.c \
  57.      oasys.c ieee.c m68kcoff.c amdcoff.c \
  58.      format.c section.c core.c syms.c reloc.c init.c \
  59.      m88k-bcs.c ecoff.c trad-core.c newsos3.c i386aout.c bout.c elf.c \
  60.     cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \
  61.      cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.o
  62.  
  63. STAGESTUFF = $(TARGETLIB) $(OFILES)
  64.  
  65. all: $(TARGETLIB) 
  66.  
  67. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  68. OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
  69.  
  70. $(TARGETLIB): $(OFILES)
  71.      rm -f $(TARGETLIB)
  72.      $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  73.      $(RANLIB) $(TARGETLIB)
  74.  
  75. stage1: force
  76.     - mkdir stage1
  77.     - mv -f $(STAGESTUFF) stage1
  78.  
  79. stage2: force
  80.     - mkdir stage2
  81.     - mv -f $(STAGESTUFF) stage2
  82.  
  83. stage3: force
  84.     - mkdir stage3
  85.     - mv -f $(STAGESTUFF) stage3
  86.  
  87. against=stage2
  88.  
  89. comparison: force
  90.     for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
  91.  
  92. de-stage1: force
  93.     - (cd stage1 ; mv -f $(STAGESTUFF) ..)
  94.     - rmdir stage1
  95.  
  96. de-stage2: force
  97.     - (cd stage2 ; mv -f $(STAGESTUFF) ..)
  98.     - rmdir stage2
  99.  
  100. de-stage3: force
  101.     - (cd stage3 ; mv -f $(STAGESTUFF) ..)
  102.     - rmdir stage3
  103.  
  104. tags etags: TAGS
  105.  
  106. TAGS: force
  107.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  108.  
  109. clean:
  110.     rm -f *.[oa] *~ core *.E *.p *.ip
  111.  
  112. clobber realclean: clean
  113.     rm -f libbfd.a TAGS
  114.  
  115. # Mark everything as depending on config.status, since the timestamp on
  116. # sysdep.h might actually move backwards if we reconfig and relink it
  117. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  118. RECONFIG = config.status
  119. $(BFD_LIBS):  libbfd.h $(BFD_H) $(RECONFIG)
  120. $(BFD_MACHINES):  libbfd.h $(BFD_H) $(RECONFIG)
  121. $(BFD_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
  122. $(OPTIONAL_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
  123.  
  124. # Get around a Sun Make bug in SunOS 4.1.1 with VPATH
  125. cpu-i386.o:cpu-i386.c
  126.  
  127. saber:
  128.     #suppress 65 on bfd_map_over_sections 
  129.     #suppress 66 on bfd_map_over_sections 
  130.     #suppress 67 on bfd_map_over_sections 
  131.     #suppress 68 on bfd_map_over_sections 
  132.     #suppress 69 on bfd_map_over_sections 
  133.     #suppress 70 on bfd_map_over_sections 
  134.     #suppress 110 in bfd_map_over_sections 
  135.     #suppress 112 in bfd_map_over_sections 
  136.     #suppress 530 
  137.     #suppress 590 in swap_exec_header 
  138.     #suppress 590 in _bfd_dummy_core_file_matches_executable_p 
  139.     #suppress 590 in bfd_dont_truncate_arname
  140.     #suppress 590 on ignore 
  141.     #suppress 590 on abfd 
  142.     #setopt load_flags $(CFLAGS)
  143.     #load $(CFILES)
  144.  
  145.  
  146. #-----------------------------------------------------------------------------
  147. #        'STANDARD' GNU/960 TARGETS BELOW THIS POINT
  148. #
  149. # 'VERSION' file must be present and contain a string of the form "x.y"
  150. #-----------------------------------------------------------------------------
  151.  
  152. ver960.c: FORCE
  153.     rm -f ver960.c
  154.     echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
  155.  
  156.  
  157. # This target should be invoked before building a new release.
  158. # 'VERSION' file must be present and contain a string of the form "x.y"
  159. #
  160. roll:
  161.     @V=`cat VERSION`        ; \
  162.     MAJ=`sed 's/\..*//' VERSION`    ; \
  163.     MIN=`sed 's/.*\.//' VERSION`    ; \
  164.     V=$$MAJ.`expr $$MIN + 1`    ; \
  165.     rm -f VERSION            ; \
  166.     echo $$V >VERSION        ; \
  167.     echo Version $$V
  168.  
  169. # Dummy target to force execution of dependent targets.
  170. #
  171. force:
  172.  
  173. install:
  174.     cp libbfd.a $(libdir)/libbfd.a.new
  175.     $(RANLIB) $(libdir)/libbfd.a.new
  176.     mv -f $(libdir)/libbfd.a.new $(libdir)/libbfd.a
  177.  
  178. # Target to uncomment host-specific lines in this makefile.  Such lines must
  179. # have the following string beginning in column 1: #__<hostname>__#
  180. # Original Makefile is backed up as 'Makefile.old'.
  181. #
  182. # Invoke with:  make make HOST=xxx
  183. #
  184. make:
  185.     -@if test $(HOST)x = x ; then \
  186.         echo 'Specify "make make HOST=???"'; \
  187.         exit 1; \
  188.     fi ; \
  189.     grep -s "^#The next line was generated by 'make make'" Makefile; \
  190.     if test $$? = 0 ; then    \
  191.         echo "Makefile has already been processed with 'make make'";\
  192.         exit 1; \
  193.     fi ; \
  194.     mv -f Makefile Makefile.old; \
  195.     echo "#The next line was generated by 'make make'"     >Makefile ; \
  196.     echo "HOST=$(HOST)"                    >>Makefile ; \
  197.     echo                            >>Makefile ; \
  198.     sed "s/^#__$(HOST)__#//" < Makefile.old            >>Makefile
  199.  
  200. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  201.     $(SHELL) ./config.status
  202.  
  203. dep: $(CFILES)
  204.     mkdep $(CFLAGS) $?
  205.  
  206.  
  207.  
  208. headers:
  209.     cp $(srcdir)/bfd-in.h $(docdir)
  210.     cp $(srcdir)/libbfd-in.h $(docdir)
  211.     cp $(srcdir)/libcoff-in.h $(docdir)
  212.     (cd $(docdir); $(MAKE) protos)
  213.     # Rebuild prototypes in bfd.h
  214.     cp $(docdir)/bfd.h $(BFD_H)
  215.     cp $(docdir)/libbfd.h $(srcdir)/libbfd.h
  216.     cp $(docdir)/libcoff.h $(srcdir)/libcoff.h
  217.     rm -f $(docdir)/bfd-in.h 
  218.     rm -f $(docdir)/libbfd-in.h 
  219.     rm -f $(docdir)/libcoff-in.h 
  220.  
  221. bfd.info:
  222.     ( cd $(docdir); $(MAKE) bfd.info)
  223.  
  224. bfd.dvi:
  225.     (cd $(docdir); $(MAKE) bfd.dvi)
  226.  
  227. bfd.ps: 
  228.     (cd $(docdir); $(MAKE) bfd.ps)
  229.  
  230. # What appears below is generated by a hacked mkdep using gcc -MM.
  231.  
  232. # DO NOT DELETE THIS LINE -- mkdep uses it.
  233. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  234.  
  235. libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  236. opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  237. bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  238. archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  239.   $(INCDIR)/ar.h $(INCDIR)/ranlib.h 
  240. targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  241. cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  242. archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h 
  243. i386coff.o : i386coff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  244.   $(INCDIR)/i386coff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
  245. aout64.o : aout64.c 
  246. aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \
  247.   $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout64.h \
  248.   $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def $(INCDIR)/ar.h 
  249. sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
  250.   libaout.h libbfd.h $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h \
  251.   $(INCDIR)/stab.def $(INCDIR)/ar.h 
  252. demo64.o : demo64.c 
  253. icoff.o : icoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  254.   $(INCDIR)/intel-coff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
  255. srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  256. oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  257.   $(INCDIR)/oasys.h liboasys.h 
  258. ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  259.   $(INCDIR)/ieee.h libieee.h 
  260. m68kcoff.o : m68kcoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  261.   $(INCDIR)/m68kcoff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
  262. amdcoff.o : amdcoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  263.   $(INCDIR)/amdcoff.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
  264. format.o : format.c $(INCDIR)/bfd.h \
  265.   $(INCDIR)/obstack.h libbfd.h 
  266. section.o : section.c $(INCDIR)/bfd.h \
  267.   $(INCDIR)/obstack.h libbfd.h 
  268. core.o : core.c $(INCDIR)/bfd.h \
  269.   $(INCDIR)/obstack.h libbfd.h 
  270. syms.o : syms.c $(INCDIR)/bfd.h \
  271.   $(INCDIR)/obstack.h libbfd.h 
  272. reloc.o : reloc.c $(INCDIR)/bfd.h \
  273.   $(INCDIR)/obstack.h libbfd.h 
  274. m88k-bcs.o : m88k-bcs.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  275.   $(INCDIR)/m88k-bcs.h $(INCDIR)/internalcoff.h libcoff.h coffcode.h 
  276. ecoff.o : ecoff.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  277.   $(INCDIR)/ecoff.h $(INCDIR)/internalcoff.h libcoff.h trad-core.h \
  278.   coffcode.h 
  279. trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
  280.   libbfd.h libaout.h 
  281. newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  282.   $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
  283.   $(INCDIR)/ar.h libaout.h 
  284. i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  285.   $(INCDIR)/aout64.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def \
  286.   $(INCDIR)/ar.h libaout.h 
  287. bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  288.   $(INCDIR)/bout.h $(INCDIR)/stab.gnu.h $(INCDIR)/stab.def libaout.h 
  289.  
  290. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  291.  
  292.